/// header : "123"
/// url : "123"
/// method : "123"
/// statusCode : "123"
/// param : "123"
/// errorCode : "123"
/// errorMessage : "123"
/// result : "123"

class NetworkLoggerModel {
  late String name;
  late String header;
  late String url;
  late String method;
  late String statusCode;
  late String param;
  late String errorCode;
  late String errorMessage;
  late String result;
  late String date;

  static NetworkLoggerModel? fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    NetworkLoggerModel networkLoggerModelBean = NetworkLoggerModel();
    networkLoggerModelBean.name = map['name'];
    networkLoggerModelBean.header = map['header'];
    networkLoggerModelBean.url = map['url'];
    networkLoggerModelBean.method = map['method'];
    networkLoggerModelBean.statusCode = map['statusCode'];
    networkLoggerModelBean.param = map['param'];
    networkLoggerModelBean.errorCode = map['errorCode'];
    networkLoggerModelBean.errorMessage = map['errorMessage'];
    networkLoggerModelBean.result = map['result'];
    networkLoggerModelBean.date = map['date'];
    return networkLoggerModelBean;
  }

  Map toJson() => {
    "name": name,
    "header": header,
    "url": url,
    "method": method,
    "statusCode": statusCode,
    "param": param,
    "errorCode": errorCode,
    "errorMessage": errorMessage,
    "result": result,
    "date": date,
  };
}